<div class="well">
    <?php
    if (isset($error) && $error instanceof BAError) {
        $errorMessages = $error->getErrorMessages();
        foreach ($errorMessages as $status => $message) {
            echo '<h5 class="text-error">' . $status . ':</h5><h6 class="text-info">' . $message . '</h6>';
        }
    }
    ?>
</div>